package com.ht.medicaltreatment.view

import android.content.Context
import com.ht.medicaltreatment.R
import kotlinx.android.synthetic.main.dialog_stop_centrifuge_layout.*

class StopCentrifugeDialog(context: Context) :BaseDialog(context,300f){
    override fun getLayoutRes() = R.layout.dialog_stop_centrifuge_layout

    fun show(onPositive:()->Unit) {
        super.show()
        btnSave.setOnClickListener {
            onPositive()
            dismiss()
        }
        btnCancel.setOnClickListener { dismiss() }
    }
}